﻿@model DMS.BO.Models.SearchResult<DMS.Entities.Hotel, DMS.BO.Models.HotelViewModel>
@using DMS.BO.Web.Mvc

<table class="ad_table" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <th width="5%" align="center">Mã khách sạn</th>
        <th width="20%" align="center">Tên khách sạn</th>
        <th width="10%" align="center">Mã thành phố</th>
        <th width="10%" align="center">Trạng thái</th>
        <th width="10%" align="center">Ngày tạo</th>
    </tr>
    @if (Model != null)
    {
        foreach (var hotel in Model.List)
        {
            int status = (int)hotel.Status;          
        <tr>
            <td align="center"><a href="#" class="hotelID1" onclick="editHotelDialog(@hotel.ID)">@hotel.ID</a> </td>
            <td align="center">@hotel.Name</td>
            <td align="center">@hotel.CityID</td>
            <td align="center">@hotel.Status</td>
            <td align="center">@hotel.TimeCreated.ToString("dd/MM/yyyy HH:mm")</td>
        </tr>              
        }
    }
</table>
<p id="pagerSelector" class="pager">
    @RazorHelpers.RenderPagerScript(@Model, "#pagerSelector", "#frmHotel")
</p>







